There is no standard way to play a sound file directly.
Try system("test.mp3");
This will open the default player, you might need to supply the absolute path.
Thomas1965's post is from a Windows perspective. I could be mistaken, but I believe you can't just type the filename in *nix environments for it to open with a default program.
Mac OS X should have a built-in command-line tool call afplay.
Also, a less convenient alternative is the command open /path/to/mp3file.mp3
Will open the .mp3 with your default music player, which is most likely iTunes on a Mac OS X.
cocaplus, I have moved the mp3 file into a group I created: Supporting Files and it doesn't seem to work, it is giving errors on the code you've given me.