summaryrefslogtreecommitdiffstats
path: root/test/helper-test.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2018-03-07 21:23:49 +0100
committerDave Davenport <qball@gmpclient.org>2018-03-07 21:23:49 +0100
commit6efd73ff92239de8ed1f0b0ac2e34624d8fc9fa4 (patch)
treef391a1409bc17732a0f2eac70da40d049c13d95a /test/helper-test.c
parent5c5665efca0ecccef82e276a806f9353042c5fca (diff)
Remove duplicate test, use tempnam instead of hardcoded path.
Issue: #543
Diffstat (limited to 'test/helper-test.c')
-rw-r--r--test/helper-test.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/helper-test.c b/test/helper-test.c
index 1ba581c8..ddafde63 100644
--- a/test/helper-test.c
+++ b/test/helper-test.c
@@ -137,22 +137,6 @@ int main ( int argc, char ** argv )
TASSERT ( g_utf8_collate ( str, "Valid utf8 until �( we continue here" ) == 0 );
g_free ( str );
}
- // Pid test.
- // Tests basic functionality of writing it, locking, seeing if I can write same again
- // And close/reopen it again.
- {
- const char *path = "/tmp/rofi-test.pid";
- TASSERT ( create_pid_file ( NULL ) == -1 );
- int fd = create_pid_file ( path );
- TASSERT ( fd >= 0 );
- int fd2 = create_pid_file ( path );
- TASSERT ( fd2 < 0 );
-
- remove_pid_file ( fd );
- fd = create_pid_file ( path );
- TASSERT ( fd >= 0 );
- remove_pid_file ( fd );
- }
{
TASSERT ( utf8_strncmp ( "aapno", "aap€",3) == 0 );
TASSERT ( utf8_strncmp ( "aapno", "aap€",4) != 0 );