@@ -193,12 +193,15 @@ FileResult TestRunner::run_test_file(const String& test_path)
193
193
int child_out_err_file = mkstemp (child_out_err_path);
194
194
VERIFY (child_out_err_file >= 0 );
195
195
196
+ String dirname = path_for_test.dirname ();
197
+ String basename = path_for_test.basename ();
198
+
196
199
(void )posix_spawn_file_actions_adddup2 (&file_actions, child_out_err_file, STDOUT_FILENO);
197
200
(void )posix_spawn_file_actions_adddup2 (&file_actions, child_out_err_file, STDERR_FILENO);
198
- (void )posix_spawn_file_actions_addchdir (&file_actions, path_for_test. dirname () .characters ());
201
+ (void )posix_spawn_file_actions_addchdir (&file_actions, dirname.characters ());
199
202
200
203
Vector<const char *, 4 > argv;
201
- argv.append (path_for_test. basename () .characters ());
204
+ argv.append (basename.characters ());
202
205
auto extra_args = m_config->read_entry (path_for_test.basename (), " Arguments" , " " ).split (' ' );
203
206
for (auto & arg : extra_args)
204
207
argv.append (arg.characters ());
@@ -242,7 +245,7 @@ FileResult TestRunner::run_test_file(const String& test_path)
242
245
243
246
int main (int argc, char ** argv)
244
247
{
245
- auto program_name = LexicalPath { argv[0 ] }. basename ( );
248
+ auto program_name = LexicalPath::basename ( argv[0 ]);
246
249
247
250
#ifdef SIGINFO
248
251
signal (SIGINFO, [](int ) {
0 commit comments