aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit
diff options
context:
space:
mode:
authorJosh Soref <2119212+jsoref@users.noreply.github.com>2023-04-11 16:04:17 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-04-11 19:21:05 -0400
commitcf9fd56bc905a2022ad48c93d25b5a73b57c8802 (patch)
treea6858f0e790f801f49d8d4f161e9183deaf90e20 /test cases/unit
parente238b81ba0b89faa19b512d1e78de00dad1488ce (diff)
downloadmeson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.zip
meson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.tar.gz
meson-cf9fd56bc905a2022ad48c93d25b5a73b57c8802.tar.bz2
fix various spelling issues
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Diffstat (limited to 'test cases/unit')
-rw-r--r--test cases/unit/63 cmake parser/meson.build4
-rw-r--r--test cases/unit/77 nostdlib/subprojects/mylibc/libc.c2
-rw-r--r--test cases/unit/87 run native test/meson.build2
-rw-r--r--test cases/unit/98 link full name/proguser/receiver.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/test cases/unit/63 cmake parser/meson.build b/test cases/unit/63 cmake parser/meson.build
index 472561d..d2a80c9 100644
--- a/test cases/unit/63 cmake parser/meson.build
+++ b/test cases/unit/63 cmake parser/meson.build
@@ -9,11 +9,11 @@ assert(dep.get_variable(cmake : 'VAR_WITH_SPACES') == 'With Spaces', 'set() with
assert(dep.get_variable(cmake : 'VAR_WITHOUT_SPACES_PS') == 'NoSpaces', 'set(PARENT_SCOPE) without spaces incorrect')
assert(dep.get_variable(cmake : 'VAR_WITH_SPACES_PS') == 'With Spaces', 'set(PARENT_SCOPE) with spaces incorrect')
-assert(dep.get_variable(cmake : 'VAR_THAT_IS_UNSET', default_value : 'sentinal') == 'sentinal', 'set() to unset is incorrect')
+assert(dep.get_variable(cmake : 'VAR_THAT_IS_UNSET', default_value : 'sentinel') == 'sentinel', 'set() to unset is incorrect')
assert(dep.get_variable(cmake : 'CACHED_STRING_NS') == 'foo', 'set(CACHED) without spaces is incorrect')
assert(dep.get_variable(cmake : 'CACHED_STRING_WS') == 'foo bar', 'set(CACHED STRING) with spaces is incorrect')
assert(dep.get_variable(cmake : 'CACHED_STRING_ARRAY_NS') == 'foo;bar', 'set(CACHED STRING) without spaces is incorrect')
assert(dep.get_variable(cmake : 'CACHED_STRING_ARRAY_WS') == 'foo;foo bar;bar', 'set(CACHED STRING[]) with spaces is incorrect')
# We don't support this, so it should be unset.
-assert(dep.get_variable(cmake : 'ENV{var}', default_value : 'sentinal') == 'sentinal', 'set(ENV) should be ignored')
+assert(dep.get_variable(cmake : 'ENV{var}', default_value : 'sentinel') == 'sentinel', 'set(ENV) should be ignored')
diff --git a/test cases/unit/77 nostdlib/subprojects/mylibc/libc.c b/test cases/unit/77 nostdlib/subprojects/mylibc/libc.c
index 67261cb..fb9a9c2 100644
--- a/test cases/unit/77 nostdlib/subprojects/mylibc/libc.c
+++ b/test cases/unit/77 nostdlib/subprojects/mylibc/libc.c
@@ -1,5 +1,5 @@
/* Do not use this as the basis of your own libc.
- * The code is probably unoptimal or wonky, as I
+ * The code is probably suboptimal or wonky, as I
* had no prior experience with this, but instead
* just fiddled with the code until it worked.
*/
diff --git a/test cases/unit/87 run native test/meson.build b/test cases/unit/87 run native test/meson.build
index 3bf419c..e706dd7 100644
--- a/test cases/unit/87 run native test/meson.build
+++ b/test cases/unit/87 run native test/meson.build
@@ -1,6 +1,6 @@
project('run native test', ['c'])
-executable('terget_exe', 'main.c')
+executable('target_exe', 'main.c')
native_exe = executable('native_exe', 'main.c', native: true)
test('native_exe', native_exe, args: ['native_test_has_run.stamp'])
diff --git a/test cases/unit/98 link full name/proguser/receiver.c b/test cases/unit/98 link full name/proguser/receiver.c
index 65e9d8e..d661ae4 100644
--- a/test cases/unit/98 link full name/proguser/receiver.c
+++ b/test cases/unit/98 link full name/proguser/receiver.c
@@ -6,7 +6,7 @@ int __attribute__((weak)) get_checked(void) {
#define CHECK_VALUE (100)
#define TEST_SUCCESS (0)
-#define TEST_FAILTURE (-1)
+#define TEST_FAILURE (-1)
int main(void) {
if (get_checked() == CHECK_VALUE) {
@@ -14,5 +14,5 @@ int main(void) {
return TEST_SUCCESS;
}
fprintf(stdout,"bad\n");
- return TEST_FAILTURE;
+ return TEST_FAILURE;
}