From 6d911bdb717d144f6419936836d69f47f35c3a65 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jun 2017 22:41:50 +0200 Subject: [PATCH] test: cleanup indentation --- test/mconn-crypt-test.c | 44 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/test/mconn-crypt-test.c b/test/mconn-crypt-test.c index c6c7b0a..3f6f4e9 100644 --- a/test/mconn-crypt-test.c +++ b/test/mconn-crypt-test.c @@ -1,5 +1,3 @@ -/* ex:ts=4:sw=4:sts=4:et */ -/* -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -7,7 +5,7 @@ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along @@ -23,37 +21,37 @@ static void test_simple(void) { - g_remove("/tmp/test.key"); - /* we made sure that file is removed */ - g_assert_false(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); + g_remove("/tmp/test.key"); + /* we made sure that file is removed */ + g_assert_false(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); - MconnCrypt *cr = mconn_crypt_new_for_key_path("/tmp/test.key"); - g_assert_nonnull(cr); - g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); + MconnCrypt *cr = mconn_crypt_new_for_key_path("/tmp/test.key"); + g_assert_nonnull(cr); + g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); - gchar *pubkey1 = mconn_crypt_get_public_key_pem(cr); + gchar *pubkey1 = mconn_crypt_get_public_key_pem(cr); - mconn_crypt_unref(cr); - /* file should still exit */ - g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); + mconn_crypt_unref(cr); + /* file should still exit */ + g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); - cr = mconn_crypt_new_for_key_path("/tmp/test.key"); - /* key should have been loaded */ - g_assert_nonnull(cr); - g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); + cr = mconn_crypt_new_for_key_path("/tmp/test.key"); + /* key should have been loaded */ + g_assert_nonnull(cr); + g_assert_true(g_file_test("/tmp/test.key", G_FILE_TEST_EXISTS)); - gchar *pubkey2 = mconn_crypt_get_public_key_pem(cr); + gchar *pubkey2 = mconn_crypt_get_public_key_pem(cr); - mconn_crypt_unref(cr); + mconn_crypt_unref(cr); - g_assert_cmpstr(pubkey1, ==, pubkey2); + g_assert_cmpstr(pubkey1, ==, pubkey2); } int main(int argc, char *argv[]) { - g_test_init(&argc, &argv, NULL); + g_test_init(&argc, &argv, NULL); - g_test_add_func("/mconn-crypt/init", test_simple); + g_test_add_func("/mconn-crypt/init", test_simple); - return g_test_run(); + return g_test_run(); }