Commit fbdbc79
authored
test_benchmark.py: Make
Previously we were just always embedding `DEFAULT_ARG`, but the caller
can pass whatever args they like.
Since `hardcode_arguments` is already best effort (it doesn't work
unless it can fine `int main` in the source code and when it cannot it
silently does nothing) it seems reasonable to also bail out in the same
way if we have more than one argument (which we do not support).
See #8081hardcode_arguments aware of args (#26293)1 parent 0a2a215 commit fbdbc79
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
412 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
413 | 419 | | |
414 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
415 | 424 | | |
416 | 425 | | |
417 | 426 | | |
| |||
422 | 431 | | |
423 | 432 | | |
424 | 433 | | |
425 | | - | |
| 434 | + | |
426 | 435 | | |
427 | 436 | | |
428 | 437 | | |
| |||
436 | 445 | | |
437 | 446 | | |
438 | 447 | | |
439 | | - | |
| 448 | + | |
440 | 449 | | |
441 | 450 | | |
442 | 451 | | |
| |||
0 commit comments