mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
[Test] Helper:Pidfile generate tmp. pidfilename.
This commit is contained in:
parent
bc42f244fa
commit
1cd7698943
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char ** argv )
|
||||||
// Tests basic functionality of writing it, locking, seeing if I can write same again
|
// Tests basic functionality of writing it, locking, seeing if I can write same again
|
||||||
// And close/reopen it again.
|
// And close/reopen it again.
|
||||||
{
|
{
|
||||||
char *path = tempnam(NULL, "rofi-pid");
|
const char *tmpd = g_get_tmp_dir ();
|
||||||
|
char *path = g_build_filename (tmpd, "rofi-pid.pid", NULL);
|
||||||
TASSERT( create_pid_file ( NULL ) == -1 );
|
TASSERT( create_pid_file ( NULL ) == -1 );
|
||||||
int fd = create_pid_file ( path );
|
int fd = create_pid_file ( path );
|
||||||
TASSERT( fd >= 0 );
|
TASSERT( fd >= 0 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue