summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-02-02 10:56:47 +0100
committerThomas Haller <thaller@redhat.com>2018-02-07 13:32:04 +0100
commitca7273b3e250e46451d93e75a2234c403eed38aa (patch)
treee6c683d8fb7126bf1fe8cc4b526c53868da644d4
parent49985a890fee419833913adc30fb5755a0823fe9 (diff)
downloadNetworkManager-ca7273b3e250e46451d93e75a2234c403eed38aa.tar.gz
dhcp/tests: don't use tab characters in string literal
I think we should avoid non-trailing tabs in source code. Allowing unescaped tab characters in string literals, adds noise when searching the code for non-trailing tabs. Also, depending on the editor configuration, it might be non-obvious that tabs are used. And while I dislike tabs in general, I think they are especially bad, when they have actual meaning in code.
-rw-r--r--src/dhcp/tests/test-dhcp-dhclient.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/dhcp/tests/test-dhcp-dhclient.c b/src/dhcp/tests/test-dhcp-dhclient.c
index f2e1f32157..6b205cc02e 100644
--- a/src/dhcp/tests/test-dhcp-dhclient.c
+++ b/src/dhcp/tests/test-dhcp-dhclient.c
@@ -754,12 +754,12 @@ test_write_existing_commented_duid (void)
static const char *interface1_orig = \
"interface \"eth0\" {\n"
- " also request my-option;\n"
- " initial-delay 5;\n"
+ "\talso request my-option;\n"
+ "\tinitial-delay 5;\n"
"}\n"
"interface \"eth1\" {\n"
- " also request another-option;\n"
- " initial-delay 0;\n"
+ "\talso request another-option;\n"
+ "\tinitial-delay 0;\n"
"}\n"
"\n"
"also request yet-another-option;\n";
@@ -798,12 +798,12 @@ test_interface1 (void)
static const char *interface2_orig = \
"interface eth0 {\n"
- " also request my-option;\n"
- " initial-delay 5;\n"
+ "\talso request my-option;\n"
+ "\tinitial-delay 5;\n"
" }\n"
"interface eth1 {\n"
- " initial-delay 0;\n"
- " request another-option;\n"
+ "\tinitial-delay 0;\n"
+ "\trequest another-option;\n"
" } \n"
"\n"
"also request yet-another-option;\n";
@@ -844,12 +844,12 @@ test_config_req_intf (void)
{
static const char *const orig = \
"request subnet-mask, broadcast-address, routers,\n"
- " rfc3442-classless-static-routes,\n"
- " interface-mtu, host-name, domain-name, domain-search,\n"
- " domain-name-servers, nis-domain, nis-servers,\n"
- " nds-context, nds-servers, nds-tree-name,\n"
- " netbios-name-servers, netbios-dd-server,\n"
- " netbios-node-type, netbios-scope, ntp-servers;\n"
+ "\trfc3442-classless-static-routes,\n"
+ "\tinterface-mtu, host-name, domain-name, domain-search,\n"
+ "\tdomain-name-servers, nis-domain, nis-servers,\n"
+ "\tnds-context, nds-servers, nds-tree-name,\n"
+ "\tnetbios-name-servers, netbios-dd-server,\n"
+ "\tnetbios-node-type, netbios-scope, ntp-servers;\n"
"";
static const char *const expected = \
"# Created by NetworkManager\n"