Commit 9484b72
Clean up algorithm choice tests and ensure proper preference reset
This commit cleans up the algorithm choice verification tests by removing
the subprocess test and ensuring all preferences are properly reset to
their original state after testing.
## Changes Made
### **Removed Subprocess Test**
- Removed @testset "Preference Integration with Fresh Process"
- Simplified testing approach to focus on direct algorithm choice verification
- Eliminated complexity of temporary files and subprocess execution
### **Enhanced Preference Cleanup**
- Added comprehensive preference reset at end of test suite
- Ensures all test preferences are cleaned up: best_algorithm_*, best_always_loaded_*
- Resets MKL preference (LoadMKL_JLL) to original state
- Clears autotune timestamp if set during testing
### **Improved Test Isolation**
- Prevents test preferences from affecting other tests or system state
- Ensures clean test environment for subsequent test runs
- Maintains test repeatability and isolation
## Final Test Structure
The algorithm choice verification tests now include:
- ✅ Direct algorithm choice validation with explicit enum checking
- ✅ Size category logic verification across multiple matrix sizes
- ✅ Element type compatibility testing (Float64, Float32, ComplexF64)
- ✅ Preference storage/retrieval infrastructure testing
- ✅ System robustness testing with invalid preferences
- ✅ Complete preference cleanup and reset
All tests focus on verifying that the right solver is chosen and that the
infrastructure is ready for preference-based algorithm selection.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 7f9bd67 commit 9484b72
1 file changed
+11
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
| 422 | + | |
478 | 423 | | |
479 | 424 | | |
480 | 425 | | |
| |||
485 | 430 | | |
486 | 431 | | |
487 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
488 | 443 | | |
0 commit comments