mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-15 08:08:12 +03:00
workflows/build.yml: remove nuget
info_tests.cpp: fix warning
This commit is contained in:
parent
6a916d766b
commit
ebefe19023
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -29,18 +29,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Nuget
|
|
||||||
uses: nuget/setup-nuget@v1
|
|
||||||
with:
|
|
||||||
nuget-api-key: ${{ secrets.NuGetAPIKey }}
|
|
||||||
nuget-version: '5.x'
|
|
||||||
|
|
||||||
- run: nuget restore '${{ env.solution }}'
|
|
||||||
|
|
||||||
- name: Setup MSBuild
|
- name: Setup MSBuild
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
with:
|
|
||||||
vs-version: '16.8'
|
|
||||||
|
|
||||||
- name: Build and Run unittests
|
- name: Build and Run unittests
|
||||||
run: |
|
run: |
|
||||||
|
@ -126,7 +126,7 @@ TEST(SetValueForStarKeyResult, Info, 1000) {
|
|||||||
char localInfo[256];
|
char localInfo[256];
|
||||||
strcpy(localInfo, d->initialInfo);
|
strcpy(localInfo, d->initialInfo);
|
||||||
localInfo[255] = 0;
|
localInfo[255] = 0;
|
||||||
bool result = Info_SetValueForStarKey(localInfo, d->key, d->value, 256);
|
bool result = Info_SetValueForStarKey(localInfo, d->key, d->value, 256) ? true : false;
|
||||||
CHECK("Invalid info string", d->success == result);
|
CHECK("Invalid info string", d->success == result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -301,7 +301,7 @@ TEST(Info_IsKeyImportant, Info, 1000)
|
|||||||
for (int i = 0; i < ARRAYSIZE(testdata); i++) {
|
for (int i = 0; i < ARRAYSIZE(testdata); i++) {
|
||||||
testdata_t* d = &testdata[i];
|
testdata_t* d = &testdata[i];
|
||||||
|
|
||||||
bool result = Info_IsKeyImportant(d->key);
|
bool result = Info_IsKeyImportant(d->key) ? true : false;
|
||||||
|
|
||||||
CHECK("wrong result", d->result == result);
|
CHECK("wrong result", d->result == result);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user