summaryrefslogtreecommitdiff
path: root/tests/testlibrary.c
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@protonmail.com>2021-10-14 14:11:49 -0700
committerPhaedrus Leeds <mwleeds@protonmail.com>2021-10-14 14:11:49 -0700
commitdf0289bc16e5380aba490db8bd71a660f7fb2a50 (patch)
tree7045e707a1ca31418f26da0adb9b322ad1d37c59 /tests/testlibrary.c
parentf94721bef2327f9d6b4517da9a438084ea99726f (diff)
downloadflatpak-fix-keyfile-bool-caps.tar.gz
Fix capitalization of "false" in flatpakref keyfilesfix-keyfile-bool-caps
g_key_file_get_boolean() only accepts lower case "true" and "false", so correct some instances of "False" in key files. This makes no functional difference as long as the error pointer isn't checked since g_key_file_get_boolean() also returns false when it can't parse the value as a boolean. But it still seems good to be correct, and someone could interpret the existence of "IsRuntime=False" as implying that "IsRuntime=True" will work, which it doesn't.
Diffstat (limited to 'tests/testlibrary.c')
-rw-r--r--tests/testlibrary.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testlibrary.c b/tests/testlibrary.c
index 748879e6..4fcd483c 100644
--- a/tests/testlibrary.c
+++ b/tests/testlibrary.c
@@ -3380,7 +3380,7 @@ test_transaction_install_flatpakref (void)
"Branch=master\n"
/* Uses a different url for the repo, so we can ensure it gets added */
"Url=http://127.0.0.1:", httpd_port, "/copy-of-test\n"
- "IsRuntime=False\n"
+ "IsRuntime=false\n"
"SuggestRemoteName=my-little-repo\n"
"RuntimeRepo=http://127.0.0.1:", httpd_port, "/test/test-repo.flatpakrepo\n",
NULL);
@@ -3510,7 +3510,7 @@ test_transaction_flatpakref_remote_creation (void)
"Name=org.test.Hello\n"
"Branch=master\n"
"Url=http://127.0.0.1:", httpd_port, "/test-without-runtime\n"
- "IsRuntime=False\n"
+ "IsRuntime=false\n"
"SuggestRemoteName=test-without-runtime-repo\n"
"RuntimeRepo=http://127.0.0.1:", httpd_port, "/test-runtime-only/test-runtime-only-repo.flatpakrepo\n",
NULL);
@@ -4197,7 +4197,7 @@ test_install_flatpakref (void)
"Name=org.test.Hello\n"
"Branch=master\n"
"Url=http://127.0.0.1:", httpd_port, "/test\n"
- "IsRuntime=False\n"
+ "IsRuntime=false\n"
"SuggestRemoteName=test-repo\n"
"RuntimeRepo=http://127.0.0.1:", httpd_port, "/test/test-repo.flatpakrepo\n",
NULL);
@@ -4447,7 +4447,7 @@ test_transaction_no_runtime (void)
"Name=org.test.Hello\n"
"Branch=master\n"
"Url=http://127.0.0.1:", httpd_port, "/test-without-runtime\n"
- "IsRuntime=False\n"
+ "IsRuntime=false\n"
"SuggestRemoteName=my-little-repo\n"
"RuntimeRepo=http://127.0.0.1:", httpd_port, "/test/test-repo.flatpakrepo\n",
NULL);